package tests;

import static org.junit.Assert.*;

import org.junit.Test;

import src.MyLinearSearch;

public class MyLinearSearchTest {

	@Test
	public void testLinearSearch() {

		new MyLinearSearch();
		
		int p = MyLinearSearch.linerSearch(new int[] { 1, 2, 3 }, 4);
		assertEquals(p, -1);
		
		int n = MyLinearSearch.linerSearch(new int[] { 1, 2, 3 }, 2);
		assertEquals(n, 1);
				
	}

}
